home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / video / NXLiveVideoView.h
Text File  |  1994-08-19  |  3KB  |  106 lines

  1. #import <appkit/View.h>
  2. #import <appkit/Window.h>
  3. #import <appkit/NXImage.h>
  4.  
  5. #define NX_FROMINPUT    0
  6. #define NX_FROMVIEW      1
  7.  
  8. #define NX_NTSCSIGNAL 0
  9. #define NX_PALSIGNAL  1
  10.  
  11. #define    NX_VIDEOIN1      /* video input ports */  1
  12. #define    NX_VIDEOIN2                               2
  13. #define    NX_VIDEOIN3                               3
  14.  
  15. @interface NXLiveVideoView : View
  16. {
  17.     void    *_private;
  18.     id          _anImage;
  19.     Window    *_cWindow;
  20.     int        _input;
  21.     float     _inputGamma;
  22.     float     _outputGamma;
  23.     float     _inputBrightness;
  24.     float     _inputHue;
  25.     float     _inputSaturation;
  26.     float    _inputContrast;
  27.     float    _inputSharpness;
  28.     id        delegate;
  29.     struct __vidFlags {
  30.     unsigned int        running:1;
  31.     unsigned int        paused:1;
  32.     unsigned int        validImage:1;
  33.     unsigned int    stopGrab:1;
  34.     unsigned int    outmode:1;
  35.     unsigned int    hasVideoResource:1;
  36.     unsigned int    everHadVideoResource:1;
  37.     unsigned int     genlock:1;
  38.     unsigned int    stopping:1;
  39.     unsigned int    spare:23;
  40.     }                   _vidFlags;
  41.     int     _pad[4];
  42.  
  43. + (const NXScreen *) videoScreen;
  44. + (BOOL)doesScreenSupportVideo: (const NXScreen *) screen
  45.     standard: (int *) standard
  46.     size: (NXSize *) size;
  47. + (BOOL)doesWindowSupportVideo: (id) window
  48.      standard: (int *) standard
  49.     size: (NXSize *) size;
  50. + (BOOL)doesRectSupportVideo: (NXRect *) rect
  51.      standard: (int *) standard
  52.     size: (NXSize *) size;
  53. - initFrame:(const NXRect *)frameRect;
  54. - free;
  55. - getVideoStandard:(int *) standp size:(NXSize *)sizep;
  56. - (BOOL) isVideoActive;
  57. - drawVideoBackground: (const NXRect *)rects : (int) count;
  58. - drawSelf:(const NXRect *)rects :(int)rectCount;
  59. - start:sender;
  60. - stop:sender;
  61. - (NXImage *) grab;        
  62. - grabIn:(NXImage *)image fromRect:(NXRect *)fromRect toRect:(NXRect *)toRect;
  63. - getSourceVideoRect:(NXRect *)aRect;
  64. - (int) numInputs;
  65. - selectInput: (int)input;
  66. - setOutputMode: (int)source;
  67. - (BOOL)doesGrabOnStop;
  68. - setGrabOnStop:(BOOL)flag;    
  69. - setInputHue: (float) angle;
  70. - (float)inputHue;
  71. - setInputSaturation: (float) saturation;    
  72. - (float)inputSaturation;
  73. - setInputBrightness: (float) brightness;
  74. - (float)inputBrightness;
  75. - setInputSharpness: (float) sharpness;
  76. - (float)inputSharpness;
  77. - setInputGamma: (float) gamma;
  78. - (float) inputGamma;
  79. - resetPictureDefaults;
  80. - setOutputGamma: (float) gamma;
  81. - (float) outputGamma;
  82. - setOutputGenlocked: (BOOL) flag;
  83. - (BOOL) outputGenlocked;
  84. - write:(NXTypedStream *)stream;
  85. - read:(NXTypedStream *)stream;
  86. - setDelegate: delegate;
  87. - delegate;
  88.  
  89. @end
  90.  
  91. @interface Object(NXLiveVideoViewDelegate)
  92. - videoDidActivate: sender;
  93. - videoDidSuspend: sender;
  94. @end
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.